package com.koo.modules.base.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.koo.common.utils.PageUtils;
import com.koo.modules.base.entity.BaseDictEntity;
import com.koo.modules.base.entity.BaseDictItemEntity;
import com.koo.modules.base.entity.vo.DictVo;
import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author charlin
 * @email 136137465@qq.com
 * @date 2022-06-02 14:50:08
 */
public interface BaseDictService extends IService<BaseDictEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //根据code获取字典内容
    List<DictVo> getDict(String code);

    List<BaseDictEntity> listDict(Map<String, Object> params);

    List<BaseDictItemEntity> listDictItem(Long dictId);

    void updateStatus(Long id, Integer status);

    void updateItemStatus(Long id, Integer status);

    void batchDelete(Long[] ids);
}

